package com.example.canaldemospringboot.test;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class AppMessageNotifier implements MessageNotifier {
    @Override
    public boolean support(int notifyType) {
        return notifyType == 1;
    }

    @Override
    public void notify(String content) {
       //调用通知app通知的api
        log.info("AppMessageNotifier:" + content);
    }
}